{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="{:url('index')}">商家列表</a>
		</li>
		<li><strong>连锁店列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
	<div class="ibox-content">
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>id</th>
                                <th>名称</th>
                                <th>地址</th>
                                <th>电话</th>
                                <th>负责人</th>
                                <th>营业时间</th>
                                <th>状态</th>
								<th>排序</th>
                            </tr>
                        </thead>
                        <tbody id="list">
                        	{volist name="list" id='ad'}
                        	<tr>
                        		<td>{$ad.id}</td>
                        		<td>{$ad.name}</td>
                        		<td>{$ad.address}</td>                       		
                        		<td>{$ad.store_tel}</td>
                        		<td>{$ad.shopowner}</td>
                        		<td>{$ad.business_start} - {$ad.business_end}</td>
                        		<td>
                        			{if $ad.status == 1}
                        		 	显示
                        		 	{else}
                        		 	不显示
                        		 	{/if}
                        		</td>
                        		<td>{$ad.sort}</td>
                        	</tr>
                        	{/volist}
                        </tbody>
                    </table>
                    <div style="text-align: right;">
                      {$list->render()}
                    </div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-11">
							<a href="{:url('index')}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
					</br>
					</br>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
</script>
{/block}